-
Notifications
You must be signed in to change notification settings - Fork 401
Proxy Support #990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy Support #990
Conversation
|
Something broke :| https://travis-ci.org/jupyterhub/binderhub/jobs/604006721#L2830 I'll look into that tomorrow. |
8171749 to
23ef024
Compare
this class can be used as a drop-in replacement for tornado's httpclient.AsyncHTTPClient and will automatically inject the correct proxy as specified in the environment variables
calls to JupyterHub are ignored for now; in the unlikely event that somebody needs to call jupyterhub through a proxy we can still change this later
23ef024 to
5122a14
Compare
|
The problem above is fixed and Travis should be able to build and test successfully, however the pipeline is randomly failing for reasons unrelated to this PR (one, two). |
|
This pull request has been mentioned on Jupyter Community Forum. There might be relevant details there: https://discourse.jupyter.org/t/binder-behind-outbound-proxy/7428/2 |
|
Hey guys. |
|
This is my current changes (on top of current master), which made it work for me: |
|
Alternatively, the config_map also could be templated with helm (either have to introduce new proxy values or somehow try to extract the proxy env vars out of the extraEnv values) |
|
I've not followed this PR but if you are interested in working on this @g-braeunlich: do you want to take over the commits in this PR and make a new PR where you add your changes on top? I think having someone who uses this feature and, as a result, is interested in pushing this over the finish line and able to test it would be great. |
|
@betatim Definitely interested, but I cannot promise that I will have time to also test the part outside the repo2docker build pod. We only connect to internal repos |
|
Option 3 could be to add an entrypoint/command script in the repo2docker container that creates the required |
|
That makes a lot of sense. I will file a MR there. |
|
Sounds good! I'm not 100% sure it'll work though. If it does then one advantage of doing it in the repo2docker Dockerfile is it should "just work" for anyone using that container outside of BinderHub. |
That is fine. I think as long as we are clear about what we are doing, can do, can test/not test, etc we can keep moving this forward with the resources/time each of us has.Basically aim for adding things that make the situation better but resist adding things where we aren't sure/can't test if they will make things better. No code is better than broken code :D |
While preparing the PR, I had the following thoughts: |
|
Good point. Maybe create the file if a |
|
My current suggestion would be: |
|
This is the PR: jupyterhub/repo2docker#1003 |
This PR adds support for running BinderHub behind a proxy, at least once complementary changes are made in repo2docker. I'm not sure if this is the prettiest way to go, feedback is welcome.
See #939